import { TShopSell } from "../../../../Message/Db/Tables/TShopSell";
import { ItemConfig } from "../ItemConfig";
import { ItemInfo } from "./ItemInfo";
type int = number;
//class ShopItemInfo
    
    export  class ShopItemInfo
    {
       

        public get tshopSell(): TShopSell
        {
            return this._tshopSell;
        }

        public set tshopSell(arg1: TShopSell)
        {
            this.itemInfo = ItemConfig.instance.getInfoByCode(arg1.itemCode);
            this._tshopSell = arg1;
            return;
        }

        public get unit(): int
        {
            return this._unit;
        }

        public set unit(arg1: int)
        {
            this._unit = arg1;
            return;
        }

        public get isMall(): Boolean
        {
            return this._isMall;
        }

        public set isMall(arg1: Boolean)
        {
            this._isMall = arg1;
            return;
        }

        public get isCanBuy(): Boolean
        {
            return this._tshopSell && this._tshopSell.canSell == 0;
        }

        public /* var */itemInfo: ItemInfo;

        /* internal */ /* var */_tshopSell: TShopSell;

        /* internal */ /* var */_unit: int;

        public /* var */buyNum: int=1;

        /* internal */ /* var */_isMall: Boolean;
    }
